/* ============================
   ROOT & RESET
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-1: #2563eb;
  --blue-2: #3b82f6;
  --blue-3: #60a5fa;
  --blue-grad: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  --sky-grad: linear-gradient(160deg, #dbeafe 0%, #eff6ff 100%);
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-mid: #334155;
  --text-soft: #64748b;
  --card-radius: 20px;
  --shadow-sm: 0 2px 12px rgba(37,99,235,.10);
  --shadow-md: 0 8px 32px rgba(37,99,235,.15);
  --shadow-lg: 0 20px 60px rgba(37,99,235,.20);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #f8faff;
  overflow-x: hidden;
}

/* ============================
   NAVBAR HEADER
   ============================ */
.navbar {
  width: 100%;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  flex-shrink: 0;
}

.navbar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: .03em;
}

.navbar-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.navbar-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.20);
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  display: none;
}

@media (min-width: 480px) {
  .navbar-tag { display: block; }
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  background: var(--blue-grad);
  padding: 64px 24px 88px;
  overflow: hidden;
  text-align: center;
}

.hero-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.30);
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}

.grad-text {
  background: linear-gradient(90deg, #bfdbfe, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   BUTTON
   ============================ */
.btn-go {
  display: inline-block;
  background: #fff;
  color: var(--blue-1);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  padding: 15px 48px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}

.btn-go:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

.btn-go--light {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}

.btn-go--light:hover {
  background: rgba(255,255,255,.25);
}

/* ============================
   FEATURES
   ============================ */
.features {
  padding: 80px 24px;
  background: var(--sky-grad);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 48px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  border-radius: var(--card-radius);
  padding: 32px 28px;
  transition: transform .22s, box-shadow .22s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card--blue {
  background: var(--blue-grad);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.card--white {
  background: #fff;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2eaf8;
}

.card-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card--white h3 { color: var(--blue-1); }

.card p {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
}

.card--blue p { color: rgba(255,255,255,.85); }
.card--white p { color: var(--text-soft); }

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  background: var(--blue-grad);
  padding: 72px 24px;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.cta-inner p {
  color: rgba(255,255,255,.80);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 32px;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--text-dark);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  letter-spacing: .04em;
}

.privacy-link {
  background: none;
  border: none;
  color: var(--blue-3);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  padding: 0;
}

.privacy-link:hover { color: #fff; }

.footer-copy {
  color: #64748b;
  font-size: 13px;
}

/* ============================
   MODAL
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: 28px 28px 0 0;
  overflow-y: auto;
  padding: 32px 28px 40px;
  position: relative;
  transform: translateY(40px);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  scrollbar-width: thin;
  scrollbar-color: var(--blue-2) #e2eaf8;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--blue-1);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
  transition: background .2s, transform .2s;
  z-index: 10;
  flex-shrink: 0;
  margin-left: auto;
}

.modal-close:hover {
  background: var(--blue-2);
  transform: scale(1.1);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: -28px;
  margin-bottom: 24px;
  padding-right: 48px;
}

.modal-body h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-1);
  margin: 20px 0 8px;
}

.modal-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 540px) {
  .hero { padding: 48px 20px 72px; }
  .features { padding: 56px 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 24px 18px 32px; }
}
